import { ElMessage } from "element-plus";

export default {
    success(msg) {
        ElMessage({
            message: msg,
            type: "success",
            plain: true,
            duration: 2000,
            showClose: true,
            offset: 80,
        });
    },
    error(msg) {
        ElMessage({
            message: msg,
            type: "error",
            plain: true,
            duration: 2000,
            showClose: true,
            offset: 80,
        });
    },
    warning(msg) {
        ElMessage({
            message: msg,
            type: "warning",
            plain: true,
            duration: 2000,
            showClose: true,
            offset: 80,
        });
    },
}